package com.educate.device.rpc.api;

import com.educate.device.model.bo.DeviceMessageBO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface DeviceMessageService {

    void create(DeviceMessageBO bo);

    void delete(DeviceMessageBO bo);

    void delete(String deviceMessageId);

    DeviceMessageBO detail(String deviceMessageId);

    DeviceMessageBO detail(DeviceMessageBO bo);

    void update(DeviceMessageBO bo);

    Page<DeviceMessageBO> query(DeviceMessageBO bo, PageRequest pageRequest);

    List<DeviceMessageBO> list(DeviceMessageBO bo);
}
